import request from "../utils/request";

/**
 * 用户注册
 * */
interface IReg {
    username: string,
    password: string
}
export const getUserReg = (data: IReg) => request.post('/user', data)


/**
 * 用户登录
 * */
export const getLogin = (params: IReg) => request.get('/user', { params })